package com.aqie.rabbit.repositories;

import com.aqie.rabbit.bean.db.UserFollow;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

public interface UserFollowRepository extends JpaRepository<UserFollow, String> {
    // 根据用户id和被关注id 查询UserFollow 及 两者User对象
    UserFollow findByOriginIdAndTargetId(@Param("originId") String originId, @Param("targetId") String targetId);

}
